#!/usr/bin/env python
# coding=utf-8

import xlwings as xw
import os

getpath = os.getcwd()  # 获得当前路径
# print(getpath)

app = xw.App(visible=False)  # 打开excel程序,不显示窗口
workbook = app.books.add()  # 创建工作簿
workbook.save(getpath + r'\example.xlsx')  # 保存
workbook.close()
app.quit()
